//接口
import request from "./http";

//获取排行歌单
export function getrankingList(){
    return request({
        url:"/toplist",
        method:"get"
    })
} 
///热门歌单
export function getperson(params){
    return request({
        url:"/playlist/hot",
        method:"get",
        params
    })
}
//获取歌单详情/playlist/detail
export function getplaydetail(params){
    return request({
        url:"/playlist/detail",
        method:"get",
        params
    })
}

// ///推荐歌单 ,标签列表 /top/playlist/highquality
export function gethigqu(params){
    return request({
        url:"/personalized",
        method:"get",
        params:{
          limit:10,
          params
        }
    })
}

//推荐歌单 ,标签列表 /top/playlist/highquality
export function getjing(params){
    return request({
        url:"/top/playlist/highquality",
        method:"get",
        params:{
          limit:1,
          params
        }
    })
}
// 推荐mv
export function gettotomv(params){
    return request({
        url:"/personalized/mv",
        method:"get",
        params:{
          limit:1,
          offset:1,
          params
        }
    })
}
//获取音乐 url
export function getsongs(params){
    return request({
        url:"/song/url",
        method:"get",
        params
    })
}
